﻿using SmartSql.DyRepository;
using Spark.Config.Api.DTO.Sms;
using Spark.Config.Api.Entity;
using Spark.Core.Values;

namespace Spark.Config.Api.Repository
{
    public interface ISmsRepository : IRepository
    {
        QueryPageResponse<SmsTempResponse> GetTempList(SmsTempSearchRequest request);

        SmsTemp GetTemp(object pars);

        QueryPageResponse<SmsRecordResponse> GetRecordList(SmsRecordSearchRequest request);

        SmsProvider GetProvider(object pars);

        QueryPageResponse<SmsProviderResponse> GetProviderList(SmsProviderSearchRequest request);

        long InsertTemp(SmsTemp temp);

        long InsertRecord(SmsRecord record);

        long InsertProvider(SmsProvider provider);

        void UpdateTemp(object temp);

        void UpdateRecord(object record);

        void UpdateProvider(object provider);
    }
}